Computer science Lesson Plan
Lesson-18:Synchronous vs Asynchronous Programming

Purpose: Learn about synchronus vs asychronous on this lesson.

No. of. Classes

Two classes(one class=one and half hours).

Material Required
  1. Desktop computer or Laptop computer
  2. Circuit Board
  3. USB cable
  4. Internet Connection
Prior knowledge

We should know internal LED's.


Exercise

Exercise:1



Create a traffic light system with Red, Green, and Yellow LEDs. The lights should change in order, one after another. (Synchronous)

Exercise:2



Design a project where three LEDs blink at different speeds (1s, 2s, 3s). (Asynchronous)

Exercise:3



Debug the given code using AI coding tool. Identify and fix the error in the given code.


Teacher Instruction
  1. Teacher should ensure, that the students should use external buttons.
  2. Teacher should prepare before the class.
  3. Teachers should ensure that Students practice all these levels.
  4. Teachers can allow students to complete the exercise as pair programming.